import 'package:shared_preferences/shared_preferences.dart';

class SharedData{

  static late SharedPreferences sharedData;

  static init() async{
    sharedData = await SharedPreferences.getInstance();
  }

  static void setData(String key,String value){
    sharedData.setString(key, value);
  }

  static String? getData(String key){
    return sharedData.getString(key);
  }

// static Future<R> setData(String key,String value){
//   sharedData.setString(key, value).then((k){
//     return ;
//   });
// }

}